package cn.shop.front.service;

import cn.shop.base.MyService;
import cn.shop.front.entity.req.WithdrawQueryReq;
import cn.shop.transcation.withdraw.entity.Withdraw;
import cn.shop.utils.ApiResult;
import cn.shop.utils.enums.WithdrawChannel;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-25 16:47
 * @description :
 */
public interface WithdrawService extends MyService<Withdraw> {

    ApiResult<Map<String, Object>> withdraw(long userId, BigDecimal amount, long id, String type, String password, String domain, WithdrawChannel channel);

    Map<String, Object> listPage(long userId, WithdrawQueryReq req);

    Map<String, String> withdrawRange();
}
